<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
	setTimeout(test(),200); 
   function test(){
     var res=confirm("你今天开心吗？");
     if(res){
      alert("相当开心！");
   }
     else{
      alert("要开心哟！");
    }
  }
  }); 
</script>
</head>
<body>

</body>
</html>
